$(document).ready(function() {
    $("img.lazy").lazyload({
        effect : "fadeIn",
        threshold : 200
    });
    $(function(){
    $(window).scroll(function(){
        if($(this).scrollTop()>10){
            $('.navbar').addClass('active');
        }else{
            $('.navbar').removeClass('active');
        }
      });
    });
    $('.sidebarFilter ul').not('.navCate').hideMaxListItems({ 'max': 5, 'speed':100, 'moreText':'Xem tiếp <i class="fa fa-angle-down pull-right"></i>','lessText':'Thu gọn <i class="fa fa-angle-up pull-right"></i>'});
    $('.sidebarFilter ul.navCate').hideMaxListItems({ 'max': 10, 'speed':100, 'moreText':'Xem tiếp <i class="fa fa-angle-down pull-right"></i>','lessText':'Thu gọn <i class="fa fa-angle-up pull-right"></i>'});
});